import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

// 用户首页
import homePage from '@/views/user/homePage.vue'
// 内部使用添加首页
import addPage from '../views/InternalUse/addPage.vue'
// 填入信息页
import fillIn from '../views/InternalUse/fillIn.vue'
// 确认信息页
import savePage from '../views/InternalUse/savePage.vue'
// 查看信息页
import detailsPage  from '../views/InternalUse/detailsPage.vue'
//修改页
import editPage  from '../views/InternalUse/editPage.vue'

Vue.use(Router)

export default new Router({
   mode:'history',
    routes: [
        // 用户主页
        {
            path: '/homePage',
            name: 'homePage',
            component: homePage,
            meta: {
                title: '用户主页'
            }
        },
        // 内部使用主页
        {
            path: '/addPage',
            name: 'addPage',
            component: addPage,
            meta: {
                title: '添加页',
                requireAuth: true,
            }
        },
        // 学生个人信息页
        {
            path: '/fillIn',
            name: 'fillIn',
            component: fillIn,
            meta: {
                title: '信息添加',
                requireAuth: true,
            }
        },
        // 信息确认页
        {
            path: '/savePage',
            name: 'savePage',
            component: savePage,
            meta: {
                title: '信息确认',
                requireAuth: true,
            }
        },
        // 被查看页
        {
            path: '/detailsPage',
            name: 'detailsPage',
            component: detailsPage,
            meta: {
                title: '详细信息页',
                requireAuth: true,
            }
        },
        // 修改
        {
            path: '/editPage',
            name: 'editPage',
            component: editPage,
            meta: {
                title: '修改页',
                requireAuth: true,
            }
        },
    ]
})
